as well as to specify the style type.which i have seen normally people on many websites don't care for.Most sites are produced by graphic designers. Whilst they know how to make something aesthetically pleasing, most know nothing about how to author HTML properly. Much of the Web is filled with garbage - there's no need to add to the pile.
HTML isn't a language where emulation is meaningful, which is why I'm dismayed at the number of people who want to "hide" their source code. My document is different to yours, so why on Earth would I want to use the same mark-up!? OK, someone might want to use the same appearance, but they don't need to look at the mark-up to do that.
My problem was solved by just giving a space between body and the first curly braces.If you truly mean that
body {
a:link {
/* ... */
}
}is a "fix", then you are sorely mistaken. Any user agent that parses that without dismissing it as nonsense is either very forgiving, or broken.
To know about color:sandybrownI know what I am talking (or rather, writing) about. If you care to read the text before that list, you'll see that W3Schools agrees with me. There are only sixteen defined colour names. Any additional names are proprietary and should not be used on the Web. Use a colour code instead.
Is it necessary to use pt,px for size instead of percentagePixels and points should only be used when positioning relative to something which is itself is given dimensions in pixels or points (such as images).
Note that fonts should never be sized this way as it prevents IE users from resizing the text if they need to (another IE bug). Instead, size font with percentages and use em or ex units when positioning relative to text.
Percentage positioning should be used when it's logical. It's usually preferred because it produces more fluid layouts.
Is it better to use hex or r,g,b code instead of color namesIf you're using one of the sixteen defined names, you may as well use them. All other colours should be defined with colour codes.
The hover code might not be used by dynamic drive.but it is commonly used by almost all the sites now-a-days.The hover pseudo-class may be commonly used, but not to dynamically resize content. I've seen that "effect" used on just a handful of sites, and it was disasterous in every case. It looks tacky and unprofessional, and is annoying to interact with.
Mike